import com.chujiu.bean.Student;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by dell on 2018/4/2.
 */
public class IOC_test {
    public  static void main(String[] args){
        new IOC_test().setter();
    }

    public  void setter(){
        ClassPathXmlApplicationContext cp=
                new ClassPathXmlApplicationContext("com/chujiu/file/bean.xml");
        Student stu = (Student) cp.getBean("stu");
        System.out.println(stu);

    }

}
